Skip to content

Conversation

@pavelzw
Copy link
Member

@pavelzw pavelzw commented Jun 26, 2025

Description

for rattler::install, rattler_solve and rattler_repodata_gateway i didn't support globbed matchspecs to keep this pr manageable.
instead, i behave exactly like when we had a nameless matchspec there (i.e. either skip or panic)
i don't think supporting them in rattler_solve makes much sense as there are no packages that have globbed packages as dependencies anyway.
for rattler_repodata_gateway, i do see some nice use cases (for example pixi search jupyter* which is currently handled in a custom manner). let's move this to another pr: #1723

let base_url = repo_data.info.as_ref().and_then(|i| i.base_url.as_deref());
for (package_name, specs) in &spec.into_iter().chunk_by(|spec| spec.borrow().name.clone()) {
let grouped_specs = specs.into_iter().collect::<Vec<_>>();
// TODO: support glob/regex package names
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pavelzw pavelzw marked this pull request as ready for review October 10, 2025 13:36
@pavelzw pavelzw requested a review from baszalmstra October 10, 2025 13:54
@pavelzw pavelzw added the enhancement New feature or request label Oct 10, 2025
@pavelzw pavelzw removed the enhancement New feature or request label Oct 10, 2025
@pavelzw
Copy link
Member Author

pavelzw commented Oct 18, 2025

@baszalmstra ready for review! once this is merged, i can make the config for conda-mirror a bit easier to use!

Copy link
Contributor

@wolfv wolfv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two smaller comments. Looks good to me :)

@pavelzw pavelzw requested a review from wolfv October 27, 2025 16:00
MatchSpec::from_nameless(NamelessMatchSpec::from_str(">=12", Strict).unwrap(), None);
assert!(!spec.is_virtual());

let spec = MatchSpec::from_str("__virtual_glob*", Strict).unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that I see this I wonder if we should add a third mode for the parsing or a new constrcutor because I would like to validate at parsing in rattler-build that we get exact matchspecs. Maybe something like from_str_wiht_matcher or Strict, Lenient, StrictWithMatcher, LenientWithMatcher ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants